program q128;
var
    s: string;
    i, n, j: longint;
begin
    assign(input, '');
    assign(output, '');
    reset(input);
    rewrite(output);

    readln(n);
    for i:=1 to n do
    begin
        readln(s);
        for j:=1 to length(s) do
        begin
            if (s[j] = 'a') or
               (s[j] = 'e') or
               (s[j] = 'i') or
               (s[j] = 'o') or
               (s[j] = 'u') then
                   s[j] := chr(ord(s[j]) - 32)
            else if (s[j] >= 'A') and (s[j] <= 'Z') and
                (s[j] <> 'A') and
                (s[j] <> 'E') and
                (s[j] <> 'I') and
                (s[j] <> 'O') and
                (s[j] <> 'U') then
                    s[j] := chr(ord(s[j]) + 32);
            write(s[j]);
        end;
        writeln;
    end;

    close(input);
    close(output);
end.
